package com.gonsin.gview.example.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


@Data
public class PasswordPo {

    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空")
    @Size(min = 3, max = 16, message = "请检查名字的长度是否3-16范围内")
    String username;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空")
    @Size(min = 3, max = 16, message = "请检查密码的长度是否3-16范围内")
    String password;

}
